<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{% load media google_analytics blog %}
<html xmlns="http://www.w3.org/1999/xhtml"
    dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
    xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
    lang="{% firstof LANGUAGE_CODE 'en' %}">
  <head>
    <title>{% block title %}{% endblock %} | {{ site_name }}</title>
    {% block blogfeeds %}
      {% blog_feeds %}
    {% endblock %}
    {% block css %}
      {% include_media 'main.css' %}
    {% endblock %}
    {% block preload_js %}
      {% google_analytics_code %}
    {% endblock %}
    {% block extra-head %}{% endblock %}
  </head>

  <body>
    <div id="site">
      <div id="site_header">
        {% include "scplsite/site_header.html" %}
      </div>

      <div class="columns">
        <div id="site_content" class="column">
          <div id="content_header">
            {% include "scplsite/content_header.html" %}
          </div>

          <div id="content">
            {% block content %}{% endblock %}
          </div>

          <div id="content_footer">
            {% block content-footer %}{% endblock %}
          </div>
        </div>

        <div id="site_sidebar" class="column">
          {% block site-sidebar %}
            {% include "scplsite/site_sidebar_header.html" %}
            <div id="content_sidebar">
              {% block content-sidebar %}{% endblock %}
            </div>
          {% endblock %}
        </div>
      </div>

      <div id="site_footer">
        {% include "scplsite/site_footer.html" %}
      </div>
    </div>

    {% block js %}{% endblock %}
  </body>
</html>
